package com.study.springboot.common.mvc;

import com.study.springboot.common.constant.ErrorRespStatusEnum;

/**
 * @author wei.zhao
 * @Description: 自定义异常
 * @date 2021年12月01日 23:01
 */
public class CustomedException extends RuntimeException {

    private ErrorRespStatusEnum errorRespStatusEnum;

    public CustomedException(ErrorRespStatusEnum errorCodeEnum) {
        this.errorRespStatusEnum = errorCodeEnum;
    }

    public ErrorRespStatusEnum getErrorRespStatusEnum() {
        return this.errorRespStatusEnum;
    }

}
